const DataTypes = require("sequelize").DataTypes

let _Account = require("./account")
let _Banner = require("./banner")
let _BulletScreen = require("./bullet_screen")
let _Category = require("./category")
let _CategoryProduct = require("./category_product")
let _Chapter = require("./chapter")
let _Comment = require("./comment")
let _CourseAnswer = require("./course_answer")
let _CourseNote = require("./course_note")
let _CourseQuestion = require("./course_question")
let _DurationRecord = require("./duration_record")
let _Episode = require("./episode")
let _Favorite = require("./favorite")
let _PlayRecord = require("./play_record")
let _Product = require("./product")
let _ProductCard = require("./product_card")
let _ProductOrder = require("./product_order")
let _Teacher = require("./teacher")
let _UserLog = require("./user_log")

function initModels(sequelize) {
    let Account = _Account(sequelize, DataTypes)
    let Banner = _Banner(sequelize, DataTypes)
    let BulletScreen = _BulletScreen(sequelize, DataTypes)
    let Category = _Category(sequelize, DataTypes)
    let CategoryProduct = _CategoryProduct(sequelize, DataTypes)
    let Chapter = _Chapter(sequelize, DataTypes)
    let Comment = _Comment(sequelize, DataTypes)
    let CourseAnswer = _CourseAnswer(sequelize, DataTypes)
    let CourseNote = _CourseNote(sequelize, DataTypes)
    let CourseQuestion = _CourseQuestion(sequelize, DataTypes)
    let DurationRecord = _DurationRecord(sequelize, DataTypes)
    let Episode = _Episode(sequelize, DataTypes)
    let Favorite = _Favorite(sequelize, DataTypes)
    let PlayRecord = _PlayRecord(sequelize, DataTypes)
    let Product = _Product(sequelize, DataTypes)
    let ProductCard = _ProductCard(sequelize, DataTypes)
    let ProductOrder = _ProductOrder(sequelize, DataTypes)
    let Teacher = _Teacher(sequelize, DataTypes)
    let UserLog = _UserLog(sequelize, DataTypes)


    return {
        Account,
        Banner,
        BulletScreen,
        Category,
        CategoryProduct,
        Chapter,
        Comment,
        CourseAnswer,
        CourseNote,
        CourseQuestion,
        DurationRecord,
        Episode,
        Favorite,
        PlayRecord,
        Product,
        ProductCard,
        ProductOrder,
        Teacher,
        UserLog,
    }
}

module.exports = initModels
module.exports.initModels = initModels
module.exports.default = initModels
